#include <conio.h>
#include "GRAFIKA.H"
#include "INPUT.H"

#define FPS 30
#define DELTA 1000/FPS

int main()
{
	int tInput;
	setMode(VGA_MODE);
	while(TRUE)
	{
		if(kbhit())
		{
			tInput = getKey();
			if(tInput == 27)
			{
				break;
			}		
		}
		setBackground(LIGHT_BLUE);
	
		
		redraw();
		delay(DELTA);
	}
	setMode(TEXT_MODE);
	return EXIT_SUCCESS;
}
